<?php
//echo geocode("9442+Valley+View+St,+Cypress,+CA+90630,+USA");
function geocode($address)
{
	$jsonurl = "http://maps.googleapis.com/maps/api/geocode/json?address=".$address."&sensor=false";
	$json = file_get_contents($jsonurl,0,null,null);
	$json_output = json_decode($json,true);
	
	return $json_output['results'][0]['geometry']['location'];
}
?>
